/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:何人亮
 * Date:2024-10-09
 * 13:11
 */
public class Test {
    public static void main(String[] args) {
        int[] arr1=new int[100];
        int[] arr2=new int[50];
        int[] arr3=new int[50];
        for (int i = 0; i <arr1.length ; i++) {
            arr1[i]=i+1;
        }
        for (int i = 0; i < arr2.length; i++) {
            arr2[i]=arr1[2*i+1];
        }
        for (int i = 0; i < arr3.length; i++) {
            arr3[i]=arr1[2*i];
        }
        for (int i = 0; i < arr2.length; i++) {
            System.out.print(arr2[i]+" ");
        }
        System.out.println();
        for (int i = 0; i < arr3.length; i++) {
            System.out.print(arr3[i]+" ");
        }
    }
}
